# -*- encoding:utf-8 -*-
from mako import runtime, filters, cache
UNDEFINED = runtime.UNDEFINED
__M_dict_builtin = dict
__M_locals_builtin = locals
_magic_number = 5
_modified_time = 1281479796.6527181
_template_filename='/Users/joeldunham/old-ok/onlinelinguisticdatabase/templates/derived/dictionary/index.html'
_template_uri='/derived/dictionary/index.html'
_template_cache=cache.Cache(__name__, _modified_time)
_source_encoding='utf-8'
from webhelpers.html import escape
_exports = ['heading']


def _mako_get_namespace(context, name):
    try:
        return context.namespaces[(__name__, name)]
    except KeyError:
        _mako_generate_namespaces(context)
        return context.namespaces[(__name__, name)]
def _mako_generate_namespaces(context):
    # SOURCE LINE 3
    ns = runtime.Namespace(u'searchFields', context._clean_inheritance_tokens(), templateuri=u'/base/searchFields.html', callables=None, calling_uri=_template_uri, module=None)
    context.namespaces[(__name__, u'searchFields')] = ns

def _mako_inherit(template, context):
    _mako_generate_namespaces(context)
    return runtime._inherit_from(context, u'/base/index.html', _template_uri)
def render_body(context,**pageargs):
    context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        _import_ns = {}
        _mako_get_namespace(context, u'searchFields')._populate(_import_ns, [u'*'])
        h = _import_ns.get('h', context.get('h', UNDEFINED))
        searchFields = _mako_get_namespace(context, 'searchFields')
        __M_writer = context.writer()
        # SOURCE LINE 1
        __M_writer(u'\n\n')
        # SOURCE LINE 3
        __M_writer(u'\n\n')
        # SOURCE LINE 5
        __M_writer(u'\n\n<form class="formTable" id="searchTable" action="')
        # SOURCE LINE 7
        __M_writer(escape(h.url_for(controller='dictionary', action='query')))
        __M_writer(u'" method="post">\n    ')
        # SOURCE LINE 8
        __M_writer(escape(searchFields.dictionarySearch()))
        __M_writer(u'    \n    <div>')
        # SOURCE LINE 9
        __M_writer(escape(h.submit(value="Search", name='submit', tabindex=30)))
        __M_writer(u'</div>\n</form>\n')
        return ''
    finally:
        context.caller_stack._pop_frame()


def render_heading(context):
    context.caller_stack._push_frame()
    try:
        _import_ns = {}
        _mako_get_namespace(context, u'searchFields')._populate(_import_ns, [u'*'])
        __M_writer = context.writer()
        return ''
    finally:
        context.caller_stack._pop_frame()


